package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class RankFunctionTypeWindowFunctionType implements WindowFunctionType {

    private int beginIndex;
    private int endIndex;
    private RankFunctionType rankFunctionType;

    public RankFunctionTypeWindowFunctionType(int endIndex,
                                              RankFunctionType rankFunctionType) {
        this.beginIndex = rankFunctionType.getBeginIndex();
        this.endIndex = endIndex;
        this.rankFunctionType = rankFunctionType;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public RankFunctionType getRankFunctionType() {
        return rankFunctionType;
    }

}
